package org.thanos.demo.core.entity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class ConfigProperties {

    private Long id;
    @NotBlank
    private String confKey;
    @NotBlank
    private String confValue;
    @NotBlank
    private String application;
    @NotBlank
    private String profile;
    @NotBlank
    private String label;
    @NotNull
    private Integer states;
    @NotBlank
    private String version;

    public Long getId() {
        return id;
    }

    public ConfigProperties setId(Long id) {
        this.id = id;
        return this;
    }

    public String getConfKey() {
        return confKey;
    }

    public ConfigProperties setConfKey(String confKey) {
        this.confKey = confKey;
        return this;
    }

    public String getConfValue() {
        return confValue;
    }

    public ConfigProperties setConfValue(String confValue) {
        this.confValue = confValue;
        return this;
    }

    public String getApplication() {
        return application;
    }

    public ConfigProperties setApplication(String application) {
        this.application = application;
        return this;
    }

    public String getProfile() {
        return profile;
    }

    public ConfigProperties setProfile(String profile) {
        this.profile = profile;
        return this;
    }

    public String getLabel() {
        return label;
    }

    public ConfigProperties setLabel(String label) {
        this.label = label;
        return this;
    }

    public Integer getStates() {
        return states;
    }

    public ConfigProperties setStates(Integer states) {
        this.states = states;
        return this;
    }

    public String getVersion() {
        return version;
    }

    public ConfigProperties setVersion(String version) {
        this.version = version;
        return this;
    }

    @Override
    public String toString() {
        return "ConfigProperties{" +
                "id=" + id +
                ", confKey='" + confKey + '\'' +
                ", confValue='" + confValue + '\'' +
                ", application='" + application + '\'' +
                ", profile='" + profile + '\'' +
                ", label='" + label + '\'' +
                ", states=" + states +
                ", version='" + version + '\'' +
                '}';
    }
}
